package cn.sycoder.exception;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 业务异常
 */
@Data
@AllArgsConstructor
public class BusinessException extends RuntimeException{
    private Integer code;

    public BusinessException(Integer code, String message){
        super(message);
        this.code = code;
    }
}
